
//
//  TheCustomView.m
//  OwnerNews
//
//  Created by lanou3g on 15/8/31.
//  Copyright (c) 2015年 Drawzyn. All rights reserved.
//

#import "TheCustomView.h"

@implementation TheCustomView
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self MyCustomView];
    }
    return self;
}

- (void)MyCustomView {
    NSArray *arr = @[@"视频",@"电台"];
    _MySegment = [[UISegmentedControl alloc]initWithItems:arr];
    _MySegment.frame = self.frame;
    _MySegment.backgroundColor = [UIColor clearColor];
    [self addSubview:_MySegment];
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
